home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10001 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: hermes.dna.mci.com!usenet
  2. From: jmathew@mcimail.com (Jerry Mathew)
  3. Newsgroups: comp.lang.c++
  4. Subject: Under_Score problem with Borland C++ and Sybase Open Client.
  5. Date: Tue, 05 Mar 1996 10:28:50 -0800 (PST)
  6. Organization: MCI Telecommunications
  7. Message-ID: <4hhq6v$fcq@hermes.dna.mci.com>
  8. NNTP-Posting-Host: 166.41.113.133
  9. X-Newsreader: Forte Free Agent v0.38
  10.  
  11. Hi, 
  12.  
  13. I am developing an application in Borland C++ Ver 4.5 to access Sybase
  14. SQL Server using the OpenClient library for Win 3.1 provided by
  15. Sybase.
  16.  
  17. The problem I am having is that the compiler generates underscores for
  18. all function calls. That is a malloc becomes _malloc in the object
  19. module. This is okay because the Borland Standard lib has underscrores
  20. preceeding all function calls. This will not work  with the OpenClient
  21. lib because a ct_connect becomes _ct_connect and the linker connect
  22. find a _ct_connect in the lib->dll . 
  23.  
  24. If I turn off underscores in the compiler options of the IDE then the
  25. linker complains about the standard C routines such as a printf or a
  26. malloc. So it is "all underscores or nothing".
  27.  
  28. Any suggestions on how to get around this would be greatly
  29. appreciated.
  30.  
  31. Thanks for having read this far.
  32.  
  33. Jerry
  34.  
  35. ------------------
  36.  
  37.